package com.simple.editor.ui;

import javax.swing.tree.DefaultMutableTreeNode;

/**
 * Created with IntelliJ IDEA.
 * User: vsoroka
 * Date: 05.06.13
 * Time: 12:23
 * To change this template use File | Settings | File Templates.
 */
class ChangesNode extends DefaultMutableTreeNode {
    private static final long serialVersionUID = 1L;
    private final FileModel file;

    public ChangesNode(final FileModel file) {
        super(String.format("%s (%s)", file.getName(), file.getAbsolutePath()));
        this.file = file;
    }

    public FileModel getFile() {
        return file;
    }
}
